Optimal. Leaf size=25 \[ -\frac {\coth (e+f x)}{f \sqrt {a \cosh ^2(e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3255, 3286,
2686, 8} \begin {gather*} -\frac {\coth (e+f x)}{f \sqrt {a \cosh ^2(e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2686
Rule 3255
Rule 3286
Rubi steps
\begin {align*} \int \frac {\coth ^2(e+f x)}{\sqrt {a+a \sinh ^2(e+f x)}} \, dx &=\int \frac {\coth ^2(e+f x)}{\sqrt {a \cosh ^2(e+f x)}} \, dx\\ &=\frac {\cosh (e+f x) \int \coth (e+f x) \text {csch}(e+f x) \, dx}{\sqrt {a \cosh ^2(e+f x)}}\\ &=-\frac {(i \cosh (e+f x)) \text {Subst}(\int 1 \, dx,x,-i \text {csch}(e+f x))}{f \sqrt {a \cosh ^2(e+f x)}}\\ &=-\frac {\coth (e+f x)}{f \sqrt {a \cosh ^2(e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 25, normalized size = 1.00 \begin {gather*} -\frac {\coth (e+f x)}{f \sqrt {a \cosh ^2(e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.99, size = 32, normalized size = 1.28
method | result | size |
default | \(-\frac {\cosh \left (f x +e \right )}{\sinh \left (f x +e \right ) \sqrt {a \left (\cosh ^{2}\left (f x +e \right )\right )}\, f}\) | \(32\) |
risch | \(-\frac {2 \left ({\mathrm e}^{2 f x +2 e}+1\right )}{\sqrt {\left ({\mathrm e}^{2 f x +2 e}+1\right )^{2} a \,{\mathrm e}^{-2 f x -2 e}}\, f \left ({\mathrm e}^{2 f x +2 e}-1\right )}\) | \(56\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 107 vs.
\(2 (25) = 50\).
time = 0.50, size = 107, normalized size = 4.28 \begin {gather*} \frac {\frac {\arctan \left (e^{\left (-f x - e\right )}\right )}{\sqrt {a}} + \frac {\sqrt {a} e^{\left (-f x - e\right )}}{a e^{\left (-2 \, f x - 2 \, e\right )} - a}}{f} - \frac {\arctan \left (e^{\left (-f x - e\right )}\right )}{\sqrt {a} f} + \frac {\sqrt {a} e^{\left (-f x - e\right )}}{{\left (a e^{\left (-2 \, f x - 2 \, e\right )} - a\right )} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 170 vs.
\(2 (23) = 46\).
time = 0.46, size = 170, normalized size = 6.80 \begin {gather*} -\frac {2 \, \sqrt {a e^{\left (4 \, f x + 4 \, e\right )} + 2 \, a e^{\left (2 \, f x + 2 \, e\right )} + a} {\left (\cosh \left (f x + e\right ) e^{\left (f x + e\right )} + e^{\left (f x + e\right )} \sinh \left (f x + e\right )\right )} e^{\left (-f x - e\right )}}{a f \cosh \left (f x + e\right )^{2} + {\left (a f e^{\left (2 \, f x + 2 \, e\right )} + a f\right )} \sinh \left (f x + e\right )^{2} - a f + {\left (a f \cosh \left (f x + e\right )^{2} - a f\right )} e^{\left (2 \, f x + 2 \, e\right )} + 2 \, {\left (a f \cosh \left (f x + e\right ) e^{\left (2 \, f x + 2 \, e\right )} + a f \cosh \left (f x + e\right )\right )} \sinh \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\coth ^{2}{\left (e + f x \right )}}{\sqrt {a \left (\sinh ^{2}{\left (e + f x \right )} + 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.11, size = 76, normalized size = 3.04 \begin {gather*} -\frac {4\,{\mathrm {e}}^{3\,e+3\,f\,x}\,\sqrt {a+a\,{\left (\frac {{\mathrm {e}}^{e+f\,x}}{2}-\frac {{\mathrm {e}}^{-e-f\,x}}{2}\right )}^2}}{a\,f\,\left ({\mathrm {e}}^{2\,e+2\,f\,x}-1\right )\,\left ({\mathrm {e}}^{e+f\,x}+{\mathrm {e}}^{3\,e+3\,f\,x}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________